package com.tc.travel.util;

import java.io.File;

import com.tc.travel.util.exception.ComRuntimeException;

public class FileUtil {
	public static void makeSureFoldExists(String foldPath) {
		File fold = new File(foldPath);
		if (!fold.exists()) {
			if (!fold.mkdirs()) {
				throw new ComRuntimeException("create fold error. foldPath: " + foldPath);
			}
		}
	}
}
